#ifdef	__cplusplus
extern "C" {
#endif

#define MAX_LISTBOX_TEXT                52
#define MAX_NUMBER_LISTBOX_ELEMENTS     30

    typedef struct lb_element {
		signed int labelId;
        signed int listboxId;
        unsigned int position;
        unsigned char text[MAX_LISTBOX_TEXT];
    } lb_element;

    typedef struct listbox {
        unsigned int x;
        unsigned int y;
        unsigned int h;
        unsigned int w;
        signed int bg_r;
        signed int bg_g;
        signed int bg_b;
        unsigned int font_r;
        unsigned int font_g;
        unsigned int font_b;
        unsigned int r_elm;
        unsigned int g_elm;
        unsigned int b_elm;
        unsigned int numberLabels;
        signed int firstVisibleElement;
        signed int lastVisibleElement;
        signed int actualElement_selected;
        unsigned int numberElements;
		unsigned int redraw;
        signed int id;
        signed int windowId;
        signed int *labels;
        window *winp;
        struct listbox *next;
        struct listbox *previous;
        unsigned char selected;
        unsigned char visible;
        unsigned char initialized;
        unsigned char border;
        unsigned char font_height;
        lb_element elements[MAX_NUMBER_LISTBOX_ELEMENTS];
    } listbox;

#ifdef	__cplusplus
}
#endif
